.admin-detail-page {
    min-height: 100vh;
    background-color: #f5f7fa;
  }
  
  .main-content {
    padding: 50px;
    width: 80%;
    margin-top: 15px;
    margin-left: 78px;
  }
  
  .detail-form {
    background: white;
    border-radius: 8px;
    border: 1.6px solid #e1e2e4;
    /* box-shadow: 0 2px 12px 0 rgba(0,0,0,0.1); */
    padding: 30px;
    overflow: hidden;  /* 防止内容溢出 */
}
.info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* padding: 15px 20px; */
  /* background-color: #fff; */
  border-radius: 8px;
  margin-bottom: 20px;
  /* box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.05); */
}

.info-dates {
  display: flex;
  gap: 30px;
}

.info-dates span {
  color: #606266;
  font-size: 14px;
}

.status-badge {
  background-color: #FEF0F0;
  color: #F56C6C;
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid #FDE2E2;
}
.form-content {
    margin-bottom: 30px;
}

.form-row {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;  /* 允许在较小屏幕上换行 */
}

.form-item {
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 300px;  /* 设置最小宽度 */
    margin-bottom: 10px;
}

.form-item label {
    width: 300px;
    color: #333;
    text-align: right;
    padding-right: 15px;
}

.permissions-section {
    margin-top: 40px;
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-left: -65px;  /* 调整左边距以对齐form-row */
    flex-wrap: wrap;
    width: 100%;
}

.section-label {
    color: #333;
    white-space: nowrap;
    width: 300px;  /* 与form-item的label宽度一致 */
    text-align: right;  /* 与form-item的label对齐方式一致 */
    padding-right: 15px;  /* 与form-item的label padding一致 */
}

.permissions-container {
    flex: 1;  /* 占据剩余空间 */
    min-width: 300px;  /* 与form-item一致的最小宽度 */
}

.permissions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    width: 100%;
}

.special-permissions {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;  /* 占满容器宽度 */
}

.permission-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;  /* 允许在较小屏幕上换行 */
}

.permission-row .el-select {
    width: 200px;
}

.form-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

:deep(.el-button--primary) {
    background-color: #1e88e5;
    border-color: #1e88e5;
    width: 150px;
    height: 40px;
    font-size: 16px;
    padding: 12px 30px;
}

:deep(.el-button--primary:hover) {
    background-color: #1976d2;
    border-color: #1976d2;
}

:deep(.el-button--default) {
    padding: 12px 30px;
}

/* 自定义复选框样式 */
:deep(.custom-checkbox .el-checkbox__input .el-checkbox__inner) {
    border-radius: 4px;
    width: 18px;
    height: 18px;
    background-color: #f5f7fa;
    border: 1px solid #dcdfe6;
}

:deep(.custom-checkbox .el-checkbox__input.is-checked .el-checkbox__inner) {
    background-color: #1e88e5;
    border-color: #1e88e5;
    border-radius: 4px;
}

:deep(.custom-checkbox .el-checkbox__input.is-checked .el-checkbox__inner::after) {
    /* 隐藏默认的勾选图标 */
    border: none;
    /* 创建一个填充的方块 */
    width: 10px;
    height: 10px;
    background-color: white;
    border-radius: 2px;
    left: 3px;
    top: 3px;
}

:deep(.custom-checkbox .el-checkbox__input.is-checked + .el-checkbox__label) {
    color: #1e88e5;
}

:deep(.el-input__wrapper) {
    background-color: #fff;
}

:deep(.el-input__inner) {
    height: 40px;
}

/* 添加媒体查询以适应小屏幕 */
@media screen and (max-width: 768px) {
    .main-content {
        padding: 15px;
    }
    
    .form-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .form-item label {
        width: 100%;
        text-align: left;
        margin-bottom: 5px;
    }
    
    .permission-row .el-select {
        width: 100%;
    }
}

/* 禁用状态下的样式 */
:deep(.el-input.is-disabled .el-input__wrapper) {
  background-color: #f5f7fa;
}

:deep(.el-checkbox.is-disabled .el-checkbox__label) {
  color: #999;
}